package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author heLin
 * @since 2024-05-11
 */
@Data
@TableName("staff_permission")
public class StaffPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long staffId;

    private Long permissionId;

    // 1：包含权限，2：排除权限(排除角色里已设置的
    private Integer type;

    @ExcelIgnore
    @TableField(exist = false)
    private Permission permission;
}
